using UnityEngine;
// [Assembly-CSharp.dll].AdsManager
public class AdsManager : MonoBehaviour
{
    
    #region AdsManager.Interstial_ads
    // [Assembly-CSharp.dll].AdsManager.Interstial_ads
    private enum Interstial_ads
    {
        // Fields
        High = 0
        ,Med = 1
        
    
    }
    
    #endregion
    
    
    #region AdsManager.<>c
    // [Assembly-CSharp.dll].AdsManager.<>c
    [Serializable]
    private sealed class __c
    {
        // Fields
        public static readonly AdsManager.<>c __9;
        public static System.Action<GoogleMobileAds.Api.InitializationStatus> __9__28_0;
        public static System.Action __9__54_1;
        public static System.Action __9__54_2;
        public static System.Action __9__54_3;
        public static System.Action<GoogleMobileAds.Api.AdError> __9__54_5;
        public static System.Action __9__65_1;
        public static System.Action __9__65_2;
        public static System.Action __9__65_3;
        public static System.Action<GoogleMobileAds.Api.AdError> __9__65_5;
        public static System.Action __9__69_1;
        public static System.Action __9__69_2;
        public static System.Action __9__69_3;
        public static System.Action<GoogleMobileAds.Api.AdError> __9__69_5;
        public static System.Action<GoogleMobileAds.Api.LoadAdError> __9__70_1;
        public static System.Action __9__70_3;
        public static System.Action __9__70_4;
        public static System.Action __9__70_5;
        public static System.Action __9__70_6;
        public static System.Action<GoogleMobileAds.Api.AdInspectorError> __9__71_0;
        
        // Methods
        private static __c()
        {
            object val_1 = 536897443;
            val_1 = new System.Object();
            mem2[0] = val_1;
            throw new NullReferenceException();
        }
        public __c()
        {
        
        }
        internal void <Start>b__28_0(GoogleMobileAds.Api.InitializationStatus initStatus)
        {
            var val_6;
            System.Collections.Generic.Dictionary<TKey, TValue>.System.Collections.Generic.Dictionary.Enumerator<Unknown, Unknown> val_2 = initStatus.getAdapterStatusMap().GetEnumerator();
            label_8:
            if(0.MoveNext() == false)
            {
                goto label_3;
            }
            
            if(0 == 0)
            {
                goto label_4;
            }
            
            if(11993091 == 0)
            {
                goto label_5;
            }
            
            if(11993091 != 1)
            {
                goto label_8;
            }
            
            UnityEngine.MonoBehaviour.print(message:  -1610609929(-1610609929) + 0 + -1610612395(-1610612395));
            goto label_8;
            label_5:
            UnityEngine.MonoBehaviour.print(message:  -1610609929(-1610609929) + 0 + -1610612369(-1610612369));
            goto label_8;
            label_3:
            0.Dispose();
            return;
            label_4:
            val_6 = 27380944;
            throw new NullReferenceException();
        }
        internal void <RegisterEventHandlersInterstitial>b__54_1()
        {
            UnityEngine.Debug.Log(message:  -1610606495);
        }
        internal void <RegisterEventHandlersInterstitial>b__54_2()
        {
            UnityEngine.Debug.Log(message:  -1610606493);
        }
        internal void <RegisterEventHandlersInterstitial>b__54_3()
        {
            UnityEngine.Debug.Log(message:  -1610606509);
        }
        internal void <RegisterEventHandlersInterstitial>b__54_5(GoogleMobileAds.Api.AdError error)
        {
            string val_2;
            if(error != null)
            {
                    val_2 = error;
            }
            else
            {
                    val_2 = 0;
            }
            
            UnityEngine.Debug.LogError(message:  -1610606515(-1610606515) + val_2);
        }
        internal void <VideoAdRegisterEventHandlers>b__65_1()
        {
            UnityEngine.Debug.Log(message:  -1610604057);
        }
        internal void <VideoAdRegisterEventHandlers>b__65_2()
        {
            UnityEngine.Debug.Log(message:  -1610604055);
        }
        internal void <VideoAdRegisterEventHandlers>b__65_3()
        {
            UnityEngine.Debug.Log(message:  -1610604071);
        }
        internal void <VideoAdRegisterEventHandlers>b__65_5(GoogleMobileAds.Api.AdError error)
        {
            string val_2;
            if(error != null)
            {
                    val_2 = error;
            }
            else
            {
                    val_2 = 0;
            }
            
            UnityEngine.Debug.LogError(message:  -1610604075(-1610604075) + val_2);
        }
        internal void <AppOpenRegisterEventHandlers>b__69_1()
        {
            UnityEngine.Debug.Log(message:  -1610609755);
        }
        internal void <AppOpenRegisterEventHandlers>b__69_2()
        {
            UnityEngine.Debug.Log(message:  -1610609753);
        }
        internal void <AppOpenRegisterEventHandlers>b__69_3()
        {
            UnityEngine.Debug.Log(message:  -1610609761);
        }
        internal void <AppOpenRegisterEventHandlers>b__69_5(GoogleMobileAds.Api.AdError error)
        {
            string val_2;
            if(error != null)
            {
                    val_2 = error;
            }
            else
            {
                    val_2 = 0;
            }
            
            UnityEngine.Debug.LogError(message:  -1610609765(-1610609765) + val_2);
        }
        internal void <ListenToAdEventsBanner>b__70_1(GoogleMobileAds.Api.LoadAdError error)
        {
            string val_2;
            if(error != null)
            {
                    val_2 = error;
            }
            else
            {
                    val_2 = 0;
            }
            
            UnityEngine.Debug.LogError(message:  -1610609475(-1610609475) + val_2);
        }
        internal void <ListenToAdEventsBanner>b__70_3()
        {
            UnityEngine.Debug.Log(message:  -1610609465);
        }
        internal void <ListenToAdEventsBanner>b__70_4()
        {
            UnityEngine.Debug.Log(message:  -1610609463);
        }
        internal void <ListenToAdEventsBanner>b__70_5()
        {
            UnityEngine.Debug.Log(message:  -1610609471);
        }
        internal void <ListenToAdEventsBanner>b__70_6()
        {
            UnityEngine.Debug.Log(message:  -1610609473);
        }
        internal void <OpenAdInspector>b__71_0(GoogleMobileAds.Api.AdInspectorError error)
        {
            string val_3;
            object val_4;
            if(error == null)
            {
                goto label_1;
            }
            
            val_3 = -1610609933;
            val_4 = val_3 + error.ToString();
            if(mem[536885163] != 0)
            {
                goto label_3;
            }
            
            goto label_3;
            label_1:
            val_4 = -1610609931;
            label_3:
            UnityEngine.Debug.Log(message:  val_4);
        }
    
    }
    
    #endregion
    
    
    #region AdsManager.<>c__DisplayClass54_0
    // [Assembly-CSharp.dll].AdsManager.<>c__DisplayClass54_0
    private sealed class __c__DisplayClass54_0
    {
        // Fields
        public AdsManager __4__this;
        public string AdUnitId;
        public GoogleMobileAds.Api.InterstitialAd ad;
        
        // Methods
        public __c__DisplayClass54_0()
        {
        
        }
        internal void <RegisterEventHandlersInterstitial>b__0(GoogleMobileAds.Api.AdValue adValue)
        {
            string val_1 = System.String.Format(format:  -1610606501, arg0:  536888155, arg1:  adValue._CurrencyCode_k__BackingField);
            UnityEngine.Debug.Log(message:  val_1);
            val_1.solarEvent(AdUnitId:  this.AdUnitId, adValue:  adValue, AdType:  3);
        }
        internal void <RegisterEventHandlersInterstitial>b__4()
        {
            string val_3;
            this.__4__this.isShowing = false;
            UnityEngine.Debug.Log(message:  -1610606511);
            if(this.ad != this.__4__this.interstitialAd_mediation)
            {
                    return;
            }
            
            this.__4__this.LoadInterstitialAdMediation();
            if(this.ad != null)
            {
                    val_3 = this.ad.ToString();
            }
            else
            {
                    val_3 = 0;
            }
            
            UnityEngine.Debug.Log(message:  -1610596535(-1610596535) + val_3);
        }
    
    }
    
    #endregion
    
    
    #region AdsManager.<>c__DisplayClass64_0
    // [Assembly-CSharp.dll].AdsManager.<>c__DisplayClass64_0
    private sealed class __c__DisplayClass64_0
    {
        // Fields
        public AdsManager __4__this;
        public System.Action _successCallBack;
        
        // Methods
        public __c__DisplayClass64_0()
        {
        
        }
        internal void <ShowRewardedAd>b__0(GoogleMobileAds.Api.Reward reward)
        {
            AdsManager val_1;
            UnityEngine.Debug.Log(message:  -1610596475);
            val_1 = this.__4__this;
            if(this.__4__this.successCallBack != null)
            {
                    val_1 = this.__4__this;
            }
            
            this.__4__this.successCallBack = this._successCallBack;
            this.__4__this.Rewarded_HandleUserEarnedReward(sender:  this._successCallBack, args:  reward);
            this.__4__this.successCallBack = 0;
            throw new NullReferenceException();
        }
    
    }
    
    #endregion
    
    
    #region AdsManager.<>c__DisplayClass65_0
    // [Assembly-CSharp.dll].AdsManager.<>c__DisplayClass65_0
    private sealed class __c__DisplayClass65_0
    {
        // Fields
        public AdsManager __4__this;
        public string AdUnitId;
        public GoogleMobileAds.Api.RewardedAd ad;
        
        // Methods
        public __c__DisplayClass65_0()
        {
        
        }
        internal void <VideoAdRegisterEventHandlers>b__0(GoogleMobileAds.Api.AdValue adValue)
        {
            string val_1 = System.String.Format(format:  -1610604063, arg0:  536888155, arg1:  adValue._CurrencyCode_k__BackingField);
            UnityEngine.Debug.Log(message:  val_1);
            val_1.solarEvent(AdUnitId:  this.AdUnitId, adValue:  adValue, AdType:  1);
        }
        internal void <VideoAdRegisterEventHandlers>b__4()
        {
            this.__4__this.isShowing = false;
            if(this.ad != this.__4__this.rewardedAdMediation)
            {
                    return;
            }
            
            this.__4__this.LoadRewardedAdMediation();
            UnityEngine.Debug.Log(message:  -1610596471);
        }
    
    }
    
    #endregion
    
    
    #region AdsManager.<>c__DisplayClass69_0
    // [Assembly-CSharp.dll].AdsManager.<>c__DisplayClass69_0
    private sealed class __c__DisplayClass69_0
    {
        // Fields
        public AdsManager __4__this;
        public string AdUnitId;
        
        // Methods
        public __c__DisplayClass69_0()
        {
        
        }
        internal void <AppOpenRegisterEventHandlers>b__0(GoogleMobileAds.Api.AdValue adValue)
        {
            string val_1 = System.String.Format(format:  -1610609757, arg0:  536888155, arg1:  adValue._CurrencyCode_k__BackingField);
            UnityEngine.Debug.Log(message:  val_1);
            val_1.solarEvent(AdUnitId:  this.AdUnitId, adValue:  adValue, AdType:  0);
        }
        internal void <AppOpenRegisterEventHandlers>b__4()
        {
            this.__4__this.isShowing = false;
            UnityEngine.Debug.Log(message:  -1610609763);
            this.__4__this.LoadAppOpenAd(adid:  this.__4__this.AppOpenAdUnitId);
        }
    
    }
    
    #endregion
    
    
    #region AdsManager.<>c__DisplayClass70_0
    // [Assembly-CSharp.dll].AdsManager.<>c__DisplayClass70_0
    private sealed class __c__DisplayClass70_0
    {
        // Fields
        public AdsManager __4__this;
        public string adUnitId;
        
        // Methods
        public __c__DisplayClass70_0()
        {
        
        }
        internal void <ListenToAdEventsBanner>b__0()
        {
            string val_3;
            GoogleMobileAds.Api.ResponseInfo val_1 = this.__4__this._bannerView.GetResponseInfo();
            if(val_1 != null)
            {
                    val_3 = val_1;
            }
            else
            {
                    val_3 = 0;
            }
            
            UnityEngine.Debug.Log(message:  -1610609469(-1610609469) + val_3);
        }
        internal void <ListenToAdEventsBanner>b__2(GoogleMobileAds.Api.AdValue adValue)
        {
            string val_1 = System.String.Format(format:  -1610609467, arg0:  536888155, arg1:  adValue._CurrencyCode_k__BackingField);
            UnityEngine.Debug.Log(message:  val_1);
            val_1.solarEvent(AdUnitId:  this.adUnitId, adValue:  adValue, AdType:  5);
        }
    
    }
    
    #endregion
    
    // Fields
    private bool firsttime;
    public int AppOpenCounter;
    public bool MediationAd;
    public bool TestMode;
    public bool ChildDirected;
    public bool isShowing;
    public string banner_id1;
    public string banner_id2;
    public string mediumrectbanner_id3;
    public GoogleMobileAds.Api.AdPosition banneroneposition;
    public GoogleMobileAds.Api.AdPosition bannertwoposition;
    public GoogleMobileAds.Api.AdPosition bannerthreemediumrectposition;
    public string interstitialid_High;
    public string interstitialid_medium;
    public string interstitialid_mediation;
    public string rewarded_id1;
    public string rewarded_id2;
    public string rewarded_id3;
    public string rewarded_mediation;
    public string AppOpenAdUnitId;
    public UnityEngine.ScreenOrientation GameScreenOrientation;
    public static AdsManager instance;
    private GoogleMobileAds.Api.AdSize adaptiveSize;
    public UnityEngine.GameObject NoVideo;
    private System.Action successCallBack;
    private GoogleMobileAds.Api.BannerView _bannerView;
    private GoogleMobileAds.Api.BannerView _bannerViewsecond;
    private GoogleMobileAds.Api.BannerView _mediumrectbannerview;
    private GoogleMobileAds.Api.InterstitialAd interstitialAd_High;
    private GoogleMobileAds.Api.InterstitialAd interstitialAd_medium;
    private GoogleMobileAds.Api.InterstitialAd interstitialAd_mediation;
    private GoogleMobileAds.Api.RewardedAd rewardedAdHigh;
    private GoogleMobileAds.Api.RewardedAd rewardedAdMedium;
    private GoogleMobileAds.Api.RewardedAd rewardedAdAll;
    private GoogleMobileAds.Api.RewardedAd rewardedAdMediation;
    private GoogleMobileAds.Api.AppOpenAd appOpenAd;
    
    // Methods
    public void Awake()
    {
        UnityEngine.Screen.sleepTimeout = 0;
        if(mem[536882295] == 0)
        {
                mem2[0] = this;
            UnityEngine.Object.DontDestroyOnLoad(target:  this.gameObject);
            return;
        }
        
        UnityEngine.Object.Destroy(obj:  this.gameObject);
    }
    public void OnApplicationPause(bool pause)
    {
        bool val_3 = pause;
        if(val_3 != false)
        {
                val_3 = 27510032;
            UnityEngine.Debug.Log(message:  -1610604803);
            if(this._bannerView != null)
        {
                this._bannerView.Hide();
        }
        
            if(this._bannerViewsecond != null)
        {
                this._bannerViewsecond.Hide();
        }
        
            if(this._mediumrectbannerview == null)
        {
                return;
        }
        
            this._mediumrectbannerview.Hide();
            return;
        }
        
        if(this.firsttime != false)
        {
                return;
        }
        
        this.isShowing = false;
        UnityEngine.Debug.Log(message:  -1610595251(-1610595251) + this.isShowing.ToString());
        UnityEngine.Debug.Log(message:  -1610607235);
        this.ShowAllBanners();
    }
    public void Start()
    {
        var val_8;
        System.Action<GoogleMobileAds.Api.InitializationStatus> val_9;
        mem2[0] = 1;
        if(this.ChildDirected != false)
        {
                536899955 = new GoogleMobileAds.Api.RequestConfiguration.GoogleMobileAds.Api.RequestConfiguration.Builder();
            System.Nullable<System.Int32Enum> val_4 = new System.Nullable<System.Int32Enum>(value:  1);
            GoogleMobileAds.Api.MobileAds.SetRequestConfiguration(requestConfiguration:  val_1.SetMaxAdContentRating(maxAdContentRating:  GoogleMobileAds.Api.MaxAdContentRating.G).SetTagForChildDirectedTreatment(tagForChildDirectedTreatment:  new System.Nullable<GoogleMobileAds.Api.TagForChildDirectedTreatment>() {Value = val_4.Value}).build());
        }
        
        val_8 = 536897443;
        if(mem[536897667] == 0)
        {
                val_8 = 536897443;
        }
        
        val_9 = mem[mem[536897627] + 8];
        val_9 = mem[536897627] + 8;
        if(val_9 == 0)
        {
                if(mem[536897667] == 0)
        {
                val_8 = 536897443;
        }
        
            System.Action<System.Object> val_7 = 536873377;
            val_9 = val_7;
            val_7 = new System.Action<System.Object>(object:  mem[536897627], method:  1610676891);
            mem2[0] = val_9;
        }
        
        GoogleMobileAds.Api.MobileAds.Initialize(initCompleteAction:  val_9);
        this.Invoke(methodName:  -1610605679, time:  10f);
        this.Invoke(methodName:  -1610603777, time:  17f);
    }
    public void ShowAppOpenOnSplash()
    {
        UnityEngine.Debug.Log(message:  -1610609771);
        this.ShowAppOpenAdIfAvailable();
    }
    public void LoadAllAdsAtStart()
    {
        this.LoadAppOpenAd(adid:  this.AppOpenAdUnitId);
        this.RequestBannerOne();
        this.RequestBannertTwo();
        this.LoadInterstitialAdMediation();
        this.LoadRewardedAdMediation();
        this.firsttime = false;
    }
    public void RequestBannerOne()
    {
        var val_4;
        GoogleMobileAds.Api.BannerView val_5;
        GoogleMobileAds.Api.AdSize val_6;
        GoogleMobileAds.Api.AdPosition val_7;
        string val_8;
        var val_9;
        if(this._bannerView != null)
        {
                this.DestroyBannerOne();
        }
        
        if(this.TestMode != false)
        {
                val_4 = 536882065;
            if(mem[536882289] == 0)
        {
                val_4 = 536882065;
        }
        
            val_5 = 536882879;
            val_6 = mem[536882249];
            val_7 = this.banneroneposition;
            val_8 = -1610599951;
        }
        else
        {
                val_9 = 536882065;
            if(mem[536882289] == 0)
        {
                val_9 = 536882065;
        }
        
            GoogleMobileAds.Api.BannerView val_1 = 536882879;
            val_5 = val_1;
            val_8 = this.banner_id1;
            val_6 = mem[536882249];
            val_7 = this.banneroneposition;
        }
        
        val_1 = new GoogleMobileAds.Api.BannerView(adUnitId:  val_8, adSize:  val_6, position:  val_7);
        this._bannerView = val_5;
        GoogleMobileAds.Api.AdRequest val_2 = 536882063;
        val_2 = new GoogleMobileAds.Api.AdRequest();
        bool val_3 = mem[536882079].Add(item:  -1610595509);
        this._bannerView.LoadAd(request:  val_2);
        this.ListenToAdEventsBanner(adUnitId:  this.banner_id1);
    }
    public void RequestBannertTwo()
    {
        var val_4;
        GoogleMobileAds.Api.BannerView val_5;
        GoogleMobileAds.Api.AdSize val_6;
        GoogleMobileAds.Api.AdPosition val_7;
        string val_8;
        var val_9;
        if(this._bannerViewsecond != null)
        {
                this.DestroyBannerTwo();
        }
        
        if(this.TestMode != false)
        {
                val_4 = 536882065;
            if(mem[536882289] == 0)
        {
                val_4 = 536882065;
        }
        
            val_5 = 536882879;
            val_6 = mem[536882249];
            val_7 = this.bannertwoposition;
            val_8 = -1610599951;
        }
        else
        {
                val_9 = 536882065;
            if(mem[536882289] == 0)
        {
                val_9 = 536882065;
        }
        
            GoogleMobileAds.Api.BannerView val_1 = 536882879;
            val_5 = val_1;
            val_8 = this.banner_id2;
            val_6 = mem[536882249];
            val_7 = this.bannertwoposition;
        }
        
        val_1 = new GoogleMobileAds.Api.BannerView(adUnitId:  val_8, adSize:  val_6, position:  val_7);
        this._bannerViewsecond = val_5;
        GoogleMobileAds.Api.AdRequest val_2 = 536882063;
        val_2 = new GoogleMobileAds.Api.AdRequest();
        bool val_3 = mem[536882079].Add(item:  -1610595509);
        this._bannerViewsecond.LoadAd(request:  val_2);
        this.ListenToAdEventsBanner(adUnitId:  this.banner_id2);
    }
    public void RequestBanner3MediumRect()
    {
        var val_4;
        GoogleMobileAds.Api.BannerView val_5;
        GoogleMobileAds.Api.AdSize val_6;
        GoogleMobileAds.Api.AdPosition val_7;
        string val_8;
        var val_9;
        if(this._mediumrectbannerview != null)
        {
                if(this._bannerView != null)
        {
                this._bannerView.Hide();
        }
        
            this._mediumrectbannerview.Show();
            return;
        }
        
        if(this.TestMode != false)
        {
                val_4 = 536882065;
            if(mem[536882289] == 0)
        {
                val_4 = 536882065;
        }
        
            val_5 = 536882879;
            val_6 = mem[536882249] + 8;
            val_7 = this.bannerthreemediumrectposition;
            val_8 = -1610599951;
        }
        else
        {
                val_9 = 536882065;
            if(mem[536882289] == 0)
        {
                val_9 = 536882065;
        }
        
            GoogleMobileAds.Api.BannerView val_1 = 536882879;
            val_5 = val_1;
            val_8 = this.mediumrectbanner_id3;
            val_6 = mem[536882249] + 8;
            val_7 = this.bannerthreemediumrectposition;
        }
        
        val_1 = new GoogleMobileAds.Api.BannerView(adUnitId:  val_8, adSize:  val_6, position:  val_7);
        this._mediumrectbannerview = val_5;
        GoogleMobileAds.Api.AdRequest val_2 = 536882063;
        val_2 = new GoogleMobileAds.Api.AdRequest();
        bool val_3 = mem[536882079].Add(item:  -1610595509);
        this._mediumrectbannerview.LoadAd(request:  val_2);
        this.ListenToAdEventsBanner(adUnitId:  this.mediumrectbanner_id3);
        if(this._bannerView == null)
        {
                return;
        }
        
        this._bannerView.Hide();
    }
    public void ShowAllBanners()
    {
        if(this._bannerView != null)
        {
                this._bannerView.Show();
        }
        else
        {
                this.RequestBannerOne();
        }
        
        if(this._bannerViewsecond != null)
        {
                this._bannerViewsecond.Show();
            return;
        }
        
        this.RequestBannertTwo();
    }
    public void DestroyBannerOne()
    {
        if(this._bannerView == null)
        {
                return;
        }
        
        this._bannerView.Destroy();
        this._bannerView = 0;
    }
    public void DestroyBannerTwo()
    {
        if(this._bannerViewsecond == null)
        {
                return;
        }
        
        this._bannerViewsecond.Destroy();
        this._bannerViewsecond = 0;
    }
    public void DestroyBannerThreeMediumRect()
    {
        if(this._mediumrectbannerview == null)
        {
                return;
        }
        
        this._mediumrectbannerview.Destroy();
        this._mediumrectbannerview = 0;
    }
    public void HideBanner3MediumRect()
    {
        if(this._mediumrectbannerview != null)
        {
                this._mediumrectbannerview.Hide();
        }
        
        if(this._bannerView == null)
        {
                return;
        }
        
        this._bannerView.Show();
    }
    public void OnPauseHideBannerThree()
    {
        if(this._mediumrectbannerview == null)
        {
                return;
        }
        
        this._mediumrectbannerview.Hide();
    }
    public void HideBannerOne()
    {
        if(this._bannerView == null)
        {
                return;
        }
        
        this._bannerView.Hide();
    }
    public void HideBannerTwo()
    {
        if(this._bannerViewsecond == null)
        {
                return;
        }
        
        this._bannerViewsecond.Hide();
    }
    public void DestroyThreeMediumrect()
    {
        if(this._mediumrectbannerview == null)
        {
                return;
        }
        
        this.DestroyBannerThreeMediumRect();
    }
    public void LoadInterstitialAdHigh()
    {
        if(this.TestMode != false)
        {
                this.interstitialid_High = -1610599957;
        }
        
        if(this.interstitialAd_High != null)
        {
                this.interstitialAd_High.Destroy();
            this.interstitialAd_High = 0;
        }
        
        GoogleMobileAds.Api.AdRequest val_1 = 536882063;
        val_1 = new GoogleMobileAds.Api.AdRequest();
        bool val_2 = mem[536882079].Add(item:  -1610595509);
        System.Action<System.Object, System.Object> val_3 = 536873497;
        val_3 = new System.Action<System.Object, System.Object>(object:  this, method:  1610676871);
        GoogleMobileAds.Api.InterstitialAd.Load(adUnitId:  this.interstitialid_High, request:  val_1, adLoadCallback:  val_3);
    }
    public void LoadInterstitialAdMedium()
    {
        if(this.TestMode != false)
        {
                this.interstitialid_medium = -1610599957;
        }
        else
        {
                UnityEngine.Debug.Log(message:  -1610598065);
        }
        
        if(this.interstitialAd_medium != null)
        {
                this.interstitialAd_medium.Destroy();
            this.interstitialAd_medium = 0;
        }
        
        UnityEngine.Debug.Log(message:  -1610605667);
        GoogleMobileAds.Api.AdRequest val_1 = 536882063;
        val_1 = new GoogleMobileAds.Api.AdRequest();
        bool val_2 = mem[536882079].Add(item:  -1610595509);
        System.Action<System.Object, System.Object> val_3 = 536873497;
        val_3 = new System.Action<System.Object, System.Object>(object:  this, method:  1610676873);
        GoogleMobileAds.Api.InterstitialAd.Load(adUnitId:  this.interstitialid_medium, request:  val_1, adLoadCallback:  val_3);
    }
    public void LoadInterstitialAdMediation()
    {
        if(this.TestMode != false)
        {
                this.interstitialid_mediation = -1610599957;
        }
        else
        {
                UnityEngine.Debug.Log(message:  -1610598065);
        }
        
        if(this.interstitialAd_mediation != null)
        {
                this.interstitialAd_mediation.Destroy();
            this.interstitialAd_mediation = 0;
        }
        
        UnityEngine.Debug.Log(message:  -1610605667);
        GoogleMobileAds.Api.AdRequest val_1 = 536882063;
        val_1 = new GoogleMobileAds.Api.AdRequest();
        bool val_2 = mem[536882079].Add(item:  -1610595509);
        System.Action<System.Object, System.Object> val_3 = 536873497;
        val_3 = new System.Action<System.Object, System.Object>(object:  this, method:  1610676875);
        GoogleMobileAds.Api.InterstitialAd.Load(adUnitId:  this.interstitialid_mediation, request:  val_1, adLoadCallback:  val_3);
    }
    public void ShowAd()
    {
        if(this.interstitialAd_mediation != null)
        {
                if((this.interstitialAd_mediation.CanShowAd() != false) && (this.isShowing != true))
        {
                int val_2 = this.AppOpenCounter;
            this.isShowing = true;
            val_2 = val_2 + 1;
            this.AppOpenCounter = val_2;
            this.interstitialAd_mediation.Show();
        }
        
            if(this.interstitialAd_mediation != null)
        {
                return;
        }
        
        }
        
        this.LoadInterstitialAdMediation();
        UnityEngine.Debug.Log(message:  -1610596533);
    }
    public void ShowAdInterstitialMediation()
    {
        var val_2;
        if(this.interstitialAd_mediation == null)
        {
            goto label_1;
        }
        
        if(this.interstitialAd_mediation.CanShowAd() != false)
        {
                int val_2 = this.AppOpenCounter;
            this.isShowing = true;
            val_2 = val_2 + 1;
            this.AppOpenCounter = val_2;
            this.interstitialAd_High.Show();
        }
        
        if(this.interstitialAd_mediation != null)
        {
            goto label_4;
        }
        
        label_1:
        val_2 = 27543088;
        this.LoadInterstitialAdMediation();
        UnityEngine.Debug.Log(message:  -1610596533);
        label_4:
        this.MediationAd = false;
    }
    private void RegisterEventHandlersInterstitial(string AdUnitId, GoogleMobileAds.Api.InterstitialAd ad)
    {
        var val_8;
        System.Action val_9;
        var val_10;
        System.Action val_11;
        var val_12;
        System.Action val_13;
        var val_14;
        System.Action<GoogleMobileAds.Api.AdError> val_15;
        object val_1 = 536897447;
        val_1 = new System.Object();
        mem[536897463] = this;
        mem[536897471] = AdUnitId;
        mem[536897479] = ad;
        System.Action<System.Object> val_2 = 536873287;
        val_2 = new System.Action<System.Object>(object:  val_1, method:  1610676931);
        mem[536897479].add_OnAdPaid(value:  val_2);
        val_8 = 536897443;
        if(mem[536897667] == 0)
        {
                val_8 = 536897443;
        }
        
        val_9 = mem[mem[536897627] + 16];
        val_9 = mem[536897627] + 16;
        if(val_9 == 0)
        {
                if(mem[536897667] == 0)
        {
                val_8 = 536897443;
        }
        
            System.Action val_3 = 536881997;
            val_9 = val_3;
            val_3 = new System.Action(object:  mem[536897627], method:  1610676893);
            mem2[0] = val_9;
        }
        
        mem[536897479].add_OnAdImpressionRecorded(value:  val_9);
        val_10 = 536897443;
        if(mem[536897667] == 0)
        {
                val_10 = 536897443;
        }
        
        val_11 = mem[mem[536897627] + 24];
        val_11 = mem[536897627] + 24;
        if(val_11 == 0)
        {
                if(mem[536897667] == 0)
        {
                val_10 = 536897443;
        }
        
            System.Action val_4 = 536881997;
            val_11 = val_4;
            val_4 = new System.Action(object:  mem[536897627], method:  1610676895);
            mem2[0] = val_11;
        }
        
        mem[536897479].add_OnAdClicked(value:  val_11);
        val_12 = 536897443;
        if(mem[536897667] == 0)
        {
                val_12 = 536897443;
        }
        
        val_13 = mem[mem[536897627] + 32];
        val_13 = mem[536897627] + 32;
        if(val_13 == 0)
        {
                if(mem[536897667] == 0)
        {
                val_12 = 536897443;
        }
        
            System.Action val_5 = 536881997;
            val_13 = val_5;
            val_5 = new System.Action(object:  mem[536897627], method:  1610676897);
            mem2[0] = val_13;
        }
        
        mem[536897479].add_OnAdFullScreenContentOpened(value:  val_13);
        System.Action val_6 = 536881997;
        val_6 = new System.Action(object:  val_1, method:  1610676933);
        mem[536897479].add_OnAdFullScreenContentClosed(value:  val_6);
        val_14 = 536897443;
        if(mem[536897667] == 0)
        {
                val_14 = 536897443;
        }
        
        val_15 = mem[mem[536897627] + 40];
        val_15 = mem[536897627] + 40;
        if(val_15 == 0)
        {
                if(mem[536897667] == 0)
        {
                val_14 = 536897443;
        }
        
            System.Action<System.Object> val_7 = 536873271;
            val_15 = val_7;
            val_7 = new System.Action<System.Object>(object:  mem[536897627], method:  1610676899);
            mem2[0] = val_15;
        }
        
        mem[536897479].add_OnAdFullScreenContentFailed(value:  val_15);
    }
    public void LoadRewardedAdHigh()
    {
        if(this.TestMode != false)
        {
                this.rewarded_id1 = -1610599953;
        }
        
        if(this.rewardedAdHigh != null)
        {
                this.rewardedAdHigh.Destroy();
            this.rewardedAdHigh = 0;
        }
        
        GoogleMobileAds.Api.AdRequest val_1 = 536882063;
        val_1 = new GoogleMobileAds.Api.AdRequest();
        bool val_2 = mem[536882079].Add(item:  -1610595509);
        System.Action<System.Object, System.Object> val_3 = 536873515;
        val_3 = new System.Action<System.Object, System.Object>(object:  this, method:  1610676877);
        GoogleMobileAds.Api.RewardedAd.Load(adUnitId:  this.rewarded_id1, request:  val_1, adLoadCallback:  val_3);
    }
    public void LoadRewardedAdMedium()
    {
        if(this.TestMode != false)
        {
                this.rewarded_id2 = -1610599953;
        }
        
        if(this.rewardedAdMedium != null)
        {
                this.rewardedAdMedium.Destroy();
            this.rewardedAdMedium = 0;
        }
        
        GoogleMobileAds.Api.AdRequest val_1 = 536882063;
        val_1 = new GoogleMobileAds.Api.AdRequest();
        bool val_2 = mem[536882079].Add(item:  -1610595509);
        System.Action<System.Object, System.Object> val_3 = 536873515;
        val_3 = new System.Action<System.Object, System.Object>(object:  this, method:  1610676879);
        GoogleMobileAds.Api.RewardedAd.Load(adUnitId:  this.rewarded_id2, request:  val_1, adLoadCallback:  val_3);
    }
    public void LoadRewardedAdAll()
    {
        if(this.TestMode != false)
        {
                this.rewarded_id3 = -1610599953;
        }
        
        if(this.rewardedAdAll != null)
        {
                this.rewardedAdAll.Destroy();
            this.rewardedAdAll = 0;
        }
        
        GoogleMobileAds.Api.AdRequest val_1 = 536882063;
        val_1 = new GoogleMobileAds.Api.AdRequest();
        bool val_2 = mem[536882079].Add(item:  -1610595509);
        System.Action<System.Object, System.Object> val_3 = 536873515;
        val_3 = new System.Action<System.Object, System.Object>(object:  this, method:  1610676881);
        GoogleMobileAds.Api.RewardedAd.Load(adUnitId:  this.rewarded_id3, request:  val_1, adLoadCallback:  val_3);
    }
    public void LoadRewardedAdMediation()
    {
        if(this.TestMode != false)
        {
                this.rewarded_mediation = -1610599953;
        }
        
        if(this.rewardedAdMediation != null)
        {
                this.rewardedAdMediation.Destroy();
            this.rewardedAdMediation = 0;
        }
        
        GoogleMobileAds.Api.AdRequest val_1 = 536882063;
        val_1 = new GoogleMobileAds.Api.AdRequest();
        bool val_2 = mem[536882079].Add(item:  -1610595509);
        System.Action<System.Object, System.Object> val_3 = 536873515;
        val_3 = new System.Action<System.Object, System.Object>(object:  this, method:  1610676883);
        GoogleMobileAds.Api.RewardedAd.Load(adUnitId:  this.rewarded_mediation, request:  val_1, adLoadCallback:  val_3);
    }
    public void Rewarded_HandleUserEarnedReward(object sender, GoogleMobileAds.Api.Reward args)
    {
        this.successCallBack = 0;
        UnityEngine.MonoBehaviour.print(message:  -1610607017(-1610607017) + args.Amount.ToString() + -1610612557(-1610612557) + args.Type);
    }
    public void ShowRewardedAd(System.Action _successCallBack)
    {
        object val_1 = 536897449;
        val_1 = new System.Object();
        mem[536897465] = this;
        mem[536897473] = _successCallBack;
        if((((this.rewardedAdHigh == null) && (this.rewardedAdMedium == null)) && (this.rewardedAdAll == null)) && (this.rewardedAdMediation == null))
        {
                this.NoVideo.SetActive(value:  true);
        }
        
        if(this.rewardedAdMediation != null)
        {
                if((this.rewardedAdMediation.CanShowAd() != false) && (this.isShowing != true))
        {
                int val_4 = this.AppOpenCounter;
            val_4 = val_4 + 1;
            this.isShowing = true;
            this.AppOpenCounter = val_4;
            System.Action<System.Object> val_3 = 536873431;
            val_3 = new System.Action<System.Object>(object:  val_1, method:  1610676937);
            this.rewardedAdMediation.Show(userRewardEarnedCallback:  val_3);
        }
        
            if(this.rewardedAdMediation != null)
        {
                return;
        }
        
        }
        
        this.LoadRewardedAdMediation();
        UnityEngine.Debug.Log(message:  -1610596473);
    }
    private void VideoAdRegisterEventHandlers(string AdUnitId, GoogleMobileAds.Api.RewardedAd ad)
    {
        var val_8;
        System.Action val_9;
        var val_10;
        System.Action val_11;
        var val_12;
        System.Action val_13;
        var val_14;
        System.Action<GoogleMobileAds.Api.AdError> val_15;
        object val_1 = 536897451;
        val_1 = new System.Object();
        mem[536897467] = this;
        mem[536897475] = AdUnitId;
        mem[536897483] = ad;
        System.Action<System.Object> val_2 = 536873287;
        val_2 = new System.Action<System.Object>(object:  val_1, method:  1610676941);
        mem[536897483].add_OnAdPaid(value:  val_2);
        val_8 = 536897443;
        if(mem[536897667] == 0)
        {
                val_8 = 536897443;
        }
        
        val_9 = mem[mem[536897627] + 48];
        val_9 = mem[536897627] + 48;
        if(val_9 == 0)
        {
                if(mem[536897667] == 0)
        {
                val_8 = 536897443;
        }
        
            System.Action val_3 = 536881997;
            val_9 = val_3;
            val_3 = new System.Action(object:  mem[536897627], method:  1610676901);
            mem2[0] = val_9;
        }
        
        mem[536897483].add_OnAdImpressionRecorded(value:  val_9);
        val_10 = 536897443;
        if(mem[536897667] == 0)
        {
                val_10 = 536897443;
        }
        
        val_11 = mem[mem[536897627] + 56];
        val_11 = mem[536897627] + 56;
        if(val_11 == 0)
        {
                if(mem[536897667] == 0)
        {
                val_10 = 536897443;
        }
        
            System.Action val_4 = 536881997;
            val_11 = val_4;
            val_4 = new System.Action(object:  mem[536897627], method:  1610676903);
            mem2[0] = val_11;
        }
        
        mem[536897483].add_OnAdClicked(value:  val_11);
        val_12 = 536897443;
        if(mem[536897667] == 0)
        {
                val_12 = 536897443;
        }
        
        val_13 = mem[mem[536897627] + 64];
        val_13 = mem[536897627] + 64;
        if(val_13 == 0)
        {
                if(mem[536897667] == 0)
        {
                val_12 = 536897443;
        }
        
            System.Action val_5 = 536881997;
            val_13 = val_5;
            val_5 = new System.Action(object:  mem[536897627], method:  1610676905);
            mem2[0] = val_13;
        }
        
        mem[536897483].add_OnAdFullScreenContentOpened(value:  val_13);
        System.Action val_6 = 536881997;
        val_6 = new System.Action(object:  val_1, method:  1610676943);
        mem[536897483].add_OnAdFullScreenContentClosed(value:  val_6);
        val_14 = 536897443;
        if(mem[536897667] == 0)
        {
                val_14 = 536897443;
        }
        
        val_15 = mem[mem[536897627] + 72];
        val_15 = mem[536897627] + 72;
        if(val_15 == 0)
        {
                if(mem[536897667] == 0)
        {
                val_14 = 536897443;
        }
        
            System.Action<System.Object> val_7 = 536873271;
            val_15 = val_7;
            val_7 = new System.Action<System.Object>(object:  mem[536897627], method:  1610676907);
            mem2[0] = val_15;
        }
        
        mem[536897483].add_OnAdFullScreenContentFailed(value:  val_15);
    }
    public void LoadAppOpenAd(string adid)
    {
        if(this.appOpenAd != null)
        {
                this.appOpenAd.Destroy();
            mem2[0] = 0;
        }
        
        UnityEngine.Debug.Log(message:  -1610605669);
        GoogleMobileAds.Api.AdRequest val_1 = 536882063;
        val_1 = new GoogleMobileAds.Api.AdRequest();
        System.Action<System.Object, System.Object> val_2 = 536873483;
        val_2 = new System.Action<System.Object, System.Object>(object:  this, method:  1610676885);
        GoogleMobileAds.Api.AppOpenAd.Load(adUnitId:  adid, orientation:  this.GameScreenOrientation, request:  val_1, adLoadCallback:  val_2);
    }
    public void ShowAppOpenAdIfAvailable()
    {
        if(this.appOpenAd != null)
        {
                if(this.appOpenAd.CanShowAd() != false)
        {
                if(this.isShowing == false)
        {
            goto label_2;
        }
        
        }
        
        }
        
        this.isShowing = false;
        this.LoadAppOpenAd(adid:  this.AppOpenAdUnitId);
        return;
        label_2:
        this.isShowing = true;
        this.appOpenAd.Show();
    }
    private void AppOpenRegisterEventHandlers(string AdUnitId, GoogleMobileAds.Api.AppOpenAd ad)
    {
        AdsManager val_8;
        var val_9;
        System.Action val_10;
        var val_11;
        System.Action val_12;
        var val_13;
        System.Action val_14;
        var val_15;
        System.Action<GoogleMobileAds.Api.AdError> val_16;
        val_8 = this;
        object val_1 = 536897453;
        val_1 = new System.Object();
        mem[536897469] = val_8;
        mem[536897477] = AdUnitId;
        System.Action<System.Object> val_2 = 536873287;
        val_2 = new System.Action<System.Object>(object:  val_1, method:  1610676947);
        ad.add_OnAdPaid(value:  val_2);
        val_9 = 536897443;
        if(mem[536897667] == 0)
        {
                val_9 = 536897443;
        }
        
        val_10 = mem[mem[536897627] + 80];
        val_10 = mem[536897627] + 80;
        if(val_10 == 0)
        {
                if(mem[536897667] == 0)
        {
                val_9 = 536897443;
        }
        
            System.Action val_3 = 536881997;
            val_8 = mem[mem[536897627]];
            val_8 = mem[536897627];
            val_10 = val_3;
            val_3 = new System.Action(object:  val_8, method:  1610676909);
            mem2[0] = val_10;
        }
        
        ad.add_OnAdImpressionRecorded(value:  val_10);
        val_11 = 536897443;
        if(mem[536897667] == 0)
        {
                val_11 = 536897443;
        }
        
        val_12 = mem[mem[536897627] + 88];
        val_12 = mem[536897627] + 88;
        if(val_12 == 0)
        {
                if(mem[536897667] == 0)
        {
                val_11 = 536897443;
        }
        
            System.Action val_4 = 536881997;
            val_8 = mem[mem[536897627]];
            val_8 = mem[536897627];
            val_12 = val_4;
            val_4 = new System.Action(object:  val_8, method:  1610676911);
            mem2[0] = val_12;
        }
        
        ad.add_OnAdClicked(value:  val_12);
        val_13 = 536897443;
        if(mem[536897667] == 0)
        {
                val_13 = 536897443;
        }
        
        val_14 = mem[mem[536897627] + 96];
        val_14 = mem[536897627] + 96;
        if(val_14 == 0)
        {
                if(mem[536897667] == 0)
        {
                val_13 = 536897443;
        }
        
            System.Action val_5 = 536881997;
            val_8 = mem[mem[536897627]];
            val_8 = mem[536897627];
            val_14 = val_5;
            val_5 = new System.Action(object:  val_8, method:  1610676913);
            mem2[0] = val_14;
        }
        
        ad.add_OnAdFullScreenContentOpened(value:  val_14);
        System.Action val_6 = 536881997;
        val_6 = new System.Action(object:  val_1, method:  1610676949);
        ad.add_OnAdFullScreenContentClosed(value:  val_6);
        val_15 = 536897443;
        if(mem[536897667] == 0)
        {
                val_15 = 536897443;
        }
        
        val_16 = mem[mem[536897627] + 104];
        val_16 = mem[536897627] + 104;
        if(val_16 == 0)
        {
                if(mem[536897667] == 0)
        {
                val_15 = 536897443;
        }
        
            System.Action<System.Object> val_7 = 536873271;
            val_16 = val_7;
            val_7 = new System.Action<System.Object>(object:  mem[536897627], method:  1610676915);
            mem2[0] = val_16;
        }
        
        ad.add_OnAdFullScreenContentFailed(value:  val_16);
    }
    private void ListenToAdEventsBanner(string adUnitId)
    {
        var val_9;
        System.Action<GoogleMobileAds.Api.LoadAdError> val_10;
        System.Action<GoogleMobileAds.Api.AdValue> val_11;
        var val_12;
        System.Action val_13;
        var val_14;
        System.Action val_15;
        var val_16;
        System.Action val_17;
        var val_18;
        System.Action val_19;
        object val_1 = 536897455;
        val_1 = new System.Object();
        mem[536897471] = this;
        mem[536897479] = adUnitId;
        System.Action val_2 = 536881997;
        val_2 = new System.Action(object:  val_1, method:  1610676953);
        this._bannerView.add_OnBannerAdLoaded(value:  val_2);
        val_9 = 536897443;
        if(mem[536897667] == 0)
        {
                val_9 = 536897443;
        }
        
        val_10 = mem[mem[536897627] + 112];
        val_10 = mem[536897627] + 112;
        if(val_10 == 0)
        {
                if(mem[536897667] == 0)
        {
                val_9 = 536897443;
        }
        
            System.Action<System.Object> val_3 = 536873391;
            val_10 = val_3;
            val_3 = new System.Action<System.Object>(object:  mem[536897627], method:  1610676917);
            mem2[0] = val_10;
        }
        
        this._bannerView.add_OnBannerAdLoadFailed(value:  val_10);
        System.Action<System.Object> val_4 = 536873287;
        val_11 = val_4;
        val_4 = new System.Action<System.Object>(object:  val_1, method:  1610676955);
        this._bannerView.add_OnAdPaid(value:  val_11);
        val_12 = 536897443;
        if(mem[536897667] == 0)
        {
                val_12 = 536897443;
        }
        
        val_13 = mem[mem[536897627] + 120];
        val_13 = mem[536897627] + 120;
        if(val_13 == 0)
        {
                if(mem[536897667] == 0)
        {
                val_12 = 536897443;
        }
        
            System.Action val_5 = 536881997;
            val_11 = mem[mem[536897627]];
            val_11 = mem[536897627];
            val_13 = val_5;
            val_5 = new System.Action(object:  val_11, method:  1610676919);
            mem2[0] = val_13;
        }
        
        this._bannerView.add_OnAdImpressionRecorded(value:  val_13);
        val_14 = 536897443;
        if(mem[536897667] == 0)
        {
                val_14 = 536897443;
        }
        
        val_15 = mem[mem[536897627] + 128];
        val_15 = mem[536897627] + 128;
        if(val_15 == 0)
        {
                if(mem[536897667] == 0)
        {
                val_14 = 536897443;
        }
        
            System.Action val_6 = 536881997;
            val_11 = mem[mem[536897627]];
            val_11 = mem[536897627];
            val_15 = val_6;
            val_6 = new System.Action(object:  val_11, method:  1610676921);
            mem2[0] = val_15;
        }
        
        this._bannerView.add_OnAdClicked(value:  val_15);
        val_16 = 536897443;
        if(mem[536897667] == 0)
        {
                val_16 = 536897443;
        }
        
        val_17 = mem[mem[536897627] + 136];
        val_17 = mem[536897627] + 136;
        if(val_17 == 0)
        {
                if(mem[536897667] == 0)
        {
                val_16 = 536897443;
        }
        
            System.Action val_7 = 536881997;
            val_11 = mem[mem[536897627]];
            val_11 = mem[536897627];
            val_17 = val_7;
            val_7 = new System.Action(object:  val_11, method:  1610676923);
            mem2[0] = val_17;
        }
        
        this._bannerView.add_OnAdFullScreenContentOpened(value:  val_17);
        val_18 = 536897443;
        if(mem[536897667] == 0)
        {
                val_18 = 536897443;
        }
        
        val_19 = mem[mem[536897627] + 144];
        val_19 = mem[536897627] + 144;
        if(val_19 == 0)
        {
                if(mem[536897667] == 0)
        {
                val_18 = 536897443;
        }
        
            System.Action val_8 = 536881997;
            val_19 = val_8;
            val_8 = new System.Action(object:  mem[536897627], method:  1610676925);
            mem2[0] = val_19;
        }
        
        this._bannerView.add_OnAdFullScreenContentClosed(value:  val_19);
    }
    public void OpenAdInspector()
    {
        object val_2;
        var val_3;
        System.Action<GoogleMobileAds.Api.AdInspectorError> val_4;
        UnityEngine.Debug.Log(message:  -1610604721);
        val_3 = 536897443;
        if(mem[536897667] == 0)
        {
                val_3 = 536897443;
        }
        
        val_4 = mem[mem[536897627] + 152];
        val_4 = mem[536897627] + 152;
        if(val_4 == 0)
        {
                if(mem[536897667] == 0)
        {
                val_3 = 536897443;
        }
        
            System.Action<System.Object> val_1 = 536873277;
            val_2 = mem[mem[536897627]];
            val_2 = mem[536897627];
            val_4 = val_1;
            val_1 = new System.Action<System.Object>(object:  val_2, method:  1610676927);
            mem2[0] = val_4;
        }
        
        GoogleMobileAds.Api.MobileAds.OpenAdInspector(adInspectorClosedAction:  val_4);
    }
    public void OnApplicationFocus(bool focus)
    {
        if(focus != false)
        {
                if(this.firsttime == false)
        {
            goto label_2;
        }
        
        }
        
        UnityEngine.Debug.Log(message:  -1610598097);
        return;
        label_2:
        UnityEngine.Debug.Log(message:  -1610598101);
        if(this.AppOpenCounter == 0)
        {
                this.ShowAppOpenAdIfAvailable();
        }
        
        this.AppOpenCounter = 0;
    }
    public void ShowRewardedADForTesting()
    {
        System.Action val_1 = 536881997;
        val_1 = new System.Action(object:  this, method:  1610676865);
        this.ShowRewardedAd(_successCallBack:  val_1);
    }
    private void completemethod()
    {
        UnityEngine.Debug.Log(message:  -1610604085);
    }
    private void solarEvent(string AdUnitId, GoogleMobileAds.Api.AdValue adValue, int AdType)
    {
        double val_1 = (double)adValue._Value_k__BackingField;
        val_1 = val_1 / 1000;
        SolarEngine.Analytics.trackIAI(attributes:  new SolarEngine.AppImpressionAttributes() {_is_rendered_k__BackingField = false});
    }
    public AdsManager()
    {
        this.firsttime = true;
    }
    private void <LoadInterstitialAdHigh>b__49_0(GoogleMobileAds.Api.InterstitialAd ad, GoogleMobileAds.Api.LoadAdError error)
    {
        string val_4;
        string val_5;
        if((ad == null) || (error != null))
        {
            goto label_2;
        }
        
        GoogleMobileAds.Api.ResponseInfo val_1 = ad.GetResponseInfo();
        if(val_1 == null)
        {
            goto label_3;
        }
        
        val_4 = val_1;
        goto label_4;
        label_2:
        if(error == null)
        {
            goto label_5;
        }
        
        val_5 = error;
        goto label_6;
        label_3:
        val_4 = 0;
        label_4:
        UnityEngine.Debug.Log(message:  -1610606507(-1610606507) + val_4);
        this.interstitialAd_High = ad;
        this.RegisterEventHandlersInterstitial(AdUnitId:  this.interstitialid_High, ad:  this.interstitialAd_High);
        return;
        label_5:
        val_5 = 0;
        label_6:
        UnityEngine.Debug.LogError(message:  -1610597939(-1610597939) + val_5);
    }
    private void <LoadInterstitialAdMedium>b__50_0(GoogleMobileAds.Api.InterstitialAd ad, GoogleMobileAds.Api.LoadAdError error)
    {
        string val_4;
        string val_5;
        if((ad == null) || (error != null))
        {
            goto label_2;
        }
        
        GoogleMobileAds.Api.ResponseInfo val_1 = ad.GetResponseInfo();
        if(val_1 == null)
        {
            goto label_3;
        }
        
        val_4 = val_1;
        goto label_4;
        label_2:
        if(error == null)
        {
            goto label_5;
        }
        
        val_5 = error;
        goto label_6;
        label_3:
        val_4 = 0;
        label_4:
        UnityEngine.Debug.Log(message:  -1610606507(-1610606507) + val_4);
        this.interstitialAd_medium = ad;
        this.RegisterEventHandlersInterstitial(AdUnitId:  this.interstitialid_medium, ad:  this.interstitialAd_medium);
        return;
        label_5:
        val_5 = 0;
        label_6:
        UnityEngine.Debug.LogError(message:  -1610597939(-1610597939) + val_5);
    }
    private void <LoadInterstitialAdMediation>b__51_0(GoogleMobileAds.Api.InterstitialAd ad, GoogleMobileAds.Api.LoadAdError error)
    {
        string val_4;
        string val_5;
        if((ad == null) || (error != null))
        {
            goto label_2;
        }
        
        GoogleMobileAds.Api.ResponseInfo val_1 = ad.GetResponseInfo();
        if(val_1 == null)
        {
            goto label_3;
        }
        
        val_4 = val_1;
        goto label_4;
        label_2:
        if(error == null)
        {
            goto label_5;
        }
        
        val_5 = error;
        goto label_6;
        label_3:
        val_4 = 0;
        label_4:
        UnityEngine.Debug.Log(message:  -1610606507(-1610606507) + val_4);
        this.interstitialAd_mediation = ad;
        this.RegisterEventHandlersInterstitial(AdUnitId:  this.interstitialid_mediation, ad:  this.interstitialAd_mediation);
        return;
        label_5:
        val_5 = 0;
        label_6:
        UnityEngine.Debug.LogError(message:  -1610597939(-1610597939) + val_5);
    }
    private void <LoadRewardedAdHigh>b__59_0(GoogleMobileAds.Api.RewardedAd ad, GoogleMobileAds.Api.LoadAdError error)
    {
        string val_4;
        string val_5;
        if((ad == null) || (error != null))
        {
            goto label_2;
        }
        
        GoogleMobileAds.Api.ResponseInfo val_1 = ad.GetResponseInfo();
        if(val_1 == null)
        {
            goto label_3;
        }
        
        val_4 = val_1;
        goto label_4;
        label_2:
        if(error == null)
        {
            goto label_5;
        }
        
        val_5 = error;
        goto label_6;
        label_3:
        val_4 = 0;
        label_4:
        UnityEngine.Debug.Log(message:  -1610604069(-1610604069) + val_4);
        this.rewardedAdHigh = ad;
        this.VideoAdRegisterEventHandlers(AdUnitId:  this.rewarded_id1, ad:  this.rewardedAdHigh);
        return;
        label_5:
        val_5 = 0;
        label_6:
        UnityEngine.Debug.LogError(message:  -1610604081(-1610604081) + val_5);
    }
    private void <LoadRewardedAdMedium>b__60_0(GoogleMobileAds.Api.RewardedAd ad, GoogleMobileAds.Api.LoadAdError error)
    {
        string val_4;
        string val_5;
        if((ad == null) || (error != null))
        {
            goto label_2;
        }
        
        GoogleMobileAds.Api.ResponseInfo val_1 = ad.GetResponseInfo();
        if(val_1 == null)
        {
            goto label_3;
        }
        
        val_4 = val_1;
        goto label_4;
        label_2:
        if(error == null)
        {
            goto label_5;
        }
        
        val_5 = error;
        goto label_6;
        label_3:
        val_4 = 0;
        label_4:
        UnityEngine.Debug.Log(message:  -1610604069(-1610604069) + val_4);
        this.rewardedAdMedium = ad;
        this.VideoAdRegisterEventHandlers(AdUnitId:  this.rewarded_id2, ad:  this.rewardedAdMedium);
        return;
        label_5:
        val_5 = 0;
        label_6:
        UnityEngine.Debug.LogError(message:  -1610604081(-1610604081) + val_5);
    }
    private void <LoadRewardedAdAll>b__61_0(GoogleMobileAds.Api.RewardedAd ad, GoogleMobileAds.Api.LoadAdError error)
    {
        string val_4;
        string val_5;
        if((ad == null) || (error != null))
        {
            goto label_2;
        }
        
        GoogleMobileAds.Api.ResponseInfo val_1 = ad.GetResponseInfo();
        if(val_1 == null)
        {
            goto label_3;
        }
        
        val_4 = val_1;
        goto label_4;
        label_2:
        if(error == null)
        {
            goto label_5;
        }
        
        val_5 = error;
        goto label_6;
        label_3:
        val_4 = 0;
        label_4:
        UnityEngine.Debug.Log(message:  -1610604069(-1610604069) + val_4);
        this.rewardedAdAll = ad;
        this.VideoAdRegisterEventHandlers(AdUnitId:  this.rewarded_id3, ad:  this.rewardedAdAll);
        return;
        label_5:
        val_5 = 0;
        label_6:
        UnityEngine.Debug.LogError(message:  -1610604081(-1610604081) + val_5);
    }
    private void <LoadRewardedAdMediation>b__62_0(GoogleMobileAds.Api.RewardedAd ad, GoogleMobileAds.Api.LoadAdError error)
    {
        string val_4;
        string val_5;
        if((ad == null) || (error != null))
        {
            goto label_2;
        }
        
        GoogleMobileAds.Api.ResponseInfo val_1 = ad.GetResponseInfo();
        if(val_1 == null)
        {
            goto label_3;
        }
        
        val_4 = val_1;
        goto label_4;
        label_2:
        if(error == null)
        {
            goto label_5;
        }
        
        val_5 = error;
        goto label_6;
        label_3:
        val_4 = 0;
        label_4:
        UnityEngine.Debug.Log(message:  -1610604069(-1610604069) + val_4);
        this.rewardedAdMediation = ad;
        this.VideoAdRegisterEventHandlers(AdUnitId:  this.rewarded_mediation, ad:  this.rewardedAdMediation);
        return;
        label_5:
        val_5 = 0;
        label_6:
        UnityEngine.Debug.LogError(message:  -1610604081(-1610604081) + val_5);
    }
    private void <LoadAppOpenAd>b__67_0(GoogleMobileAds.Api.AppOpenAd ad, GoogleMobileAds.Api.LoadAdError error)
    {
        string val_4;
        string val_5;
        if((ad == null) || (error != null))
        {
            goto label_2;
        }
        
        GoogleMobileAds.Api.ResponseInfo val_1 = ad.GetResponseInfo();
        if(val_1 == null)
        {
            goto label_3;
        }
        
        val_4 = val_1;
        goto label_4;
        label_2:
        if(error == null)
        {
            goto label_5;
        }
        
        val_5 = error;
        goto label_6;
        label_3:
        val_4 = 0;
        label_4:
        UnityEngine.Debug.Log(message:  -1610609759(-1610609759) + val_4);
        this.appOpenAd = ad;
        this.AppOpenRegisterEventHandlers(AdUnitId:  this.AppOpenAdUnitId, ad:  ad);
        return;
        label_5:
        val_5 = 0;
        label_6:
        UnityEngine.Debug.LogError(message:  -1610600293(-1610600293) + val_5);
    }

}
